import { createRouter, createWebHashHistory } from "vue-router";
import Home from "../views/Home.vue"
import Login from "../views/Login.vue"

const routes = [
    {
        path: "",
        redirect: '/about',
        component: () => import("../views/Home.vue"),
    },
    {
        path: "/Login",
        name: "Login",
        component: Login,
    },
    {
        path: "/",
        component: () => import("../views/Home.vue"),
        children: [
            {
                path: "/about",
                name: "About",
                component: () => import("../views/About.vue"),
            },
            
        ]

    },


]


const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router;